fixed bug 1897, zoom control numbers misplaced when changing search mode

fixed bug 1897, zoom control numbers misplaced when changing search mode
This commit is contained in:
Andy Hertzfeld 2000-08-04 06:18:00 +00:00
parent e3493734d7
commit ec010862c6
4 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,14 @@
2000-08-03 Andy Hertzfeld <andy@eazel.com>
* icons/arlo/arlo.xml:
* src/nautilus-zoom-control.c: (draw_number):
fixed bug 1897, zoom control numbers draw in wrong place when search bar mode switches.
Fixed by removing an offset that shouldn't have been added to position, and tweaked a
position in the theme file that was mistakenly compensating.
* components/music/mpg123_handler.c:
a little bit of work fixing music view problems, more coming soon.
2000-08-03 Ramiro Estrugo <ramiro@eazel.com>
Fix bug 1905.

View file

@ -90,8 +90,8 @@ gchar *mpg123_device = NULL;
gint debug_mode = 0;
gint new_song = 0;
gint mpg123_status = STATUS_STOP;
static gint mpg123_status = STATUS_STOP;
static gint mp3_pid;
static void sigchld_handler(int);

View file

@ -4,6 +4,6 @@
<sidebar SIDEBAR_BACKGROUND_COLOR="rgb:6666/9999/9999-rgb:0000/3333/3333|90-rgb:0000/0000/0000:h" SIDEBAR_BACKGROUND_TILE_IMAGE="backgrounds/.striated.png" TAB_PIECE_IMAGES="sidebar_tab_pieces" COMBINE="TRUE"
LEFT_OFFSET="0" TEXT_H_OFFSET="-4" LABEL_COLOR="rgb:FFFF/FFFF/FFFF" />
<desktop BACKGROUND_TILE_IMAGE="./backgrounds/desktop_pattern.png"/>
<zoom_control NUMBER_V_OFFSET="-11" DIGIT_WIDTH="6"/>
<zoom_control NUMBER_V_OFFSET="-6" DIGIT_WIDTH="6"/>
</theme>

View file

@ -291,7 +291,7 @@ void draw_number (GtkWidget *widget, GdkRectangle *box)
percent = floor((100.0 * zoom_control->details->zoom_level) + .5);
g_snprintf(buffer, 8, "%d", percent);
y = zoom_control->details->y_offset + 1 + num_v_offset + (box->height >> 1);
y = 1 + num_v_offset + (box->height >> 1);
x = num_h_offset + ((box->width - char_width * strlen(buffer)) >> 1);
temp_gc = gdk_gc_new(widget->window);